<template>
  <div class="body">
    <top/>
    <div class="userpage_middle">
        <div class="userpage_middle_avartar-box">
          <div class="userpage_middle_avatar">
            <img :src="'http://localhost:8888/image/'+this.userAvtar+'.png'" style="height: 60px ;width: 63px ;border-radius: 50%;"/>
          </div>
          <div class="userpage_middle_user-id">
            {{$cookies.get("userName")}}
          </div>
            <div class="userpage_middle_user-level">
              <div class="userpage_middle_user-level_container">
                <span class="userpage_middle_user-level_crentylevel_number">
                  LV{{crentylevel}}
                </span>
              </div>

            </div>
        </div>
        <div class="userpage_middle_navibar">
          <div class="userpage_middle_navibar_icon">
            <div class="userpage_middle_navibar_icon_box">
              <img src="../assets/home.png" style="height: 20px ; width: 22px" @click="userpageChangeMain"/>
              <span class="userpage_middle_navibar_icon_text" @click="userpageChangeMain">主页</span>
            </div>
            <div class="userpage_middle_navibar_icon_box">
              <img src="../assets/userdongtai.png" style="width: 22px ; height: 20px" @click="userpageChangeFellow"/>
              <span class="userpage_middle_navibar_icon_text" @click="userpageChangeFellow">动态</span>
            </div>
            <div class="userpage_middle_navibar_icon_box">
              <img src="../assets/userstar.png" style="width: 22px ; height: 20px" @click="userpageChangeCllection"/>
              <span class="userpage_middle_navibar_icon_text" @click="userpageChangeCllection">收藏</span>
            </div>
            <div class="userpage_middle_navibar_icon_box">
              <img src="../assets/repository.png" style="width: 22px ; height: 20px" @click="userpageChangeKuku"/>
              <span class="userpage_middle_navibar_icon_text" @click="userpageChangeKuku">库</span>
            </div>
            <div class="userpage_middle_navibar_icon_box">
              <img src="../assets/cog.png" style="width: 22px ; height: 20px" @click="userpageChangeSetting"/>
              <span class="userpage_middle_navibar_icon_text" @click="userpageChangeSetting">设置</span>
            </div>
          </div>
          <div class="userpage_middle_navibar_search-box">
            <input type="text" class="userpage_middle_navibar_search" v-model="search"/>
            <i> <img src="../assets/search.png" style="height: 14px ; width: 14px;position: absolute;right: 45%;bottom: 15px"/></i>
          </div>
          <div class="userpage_middle_navibar_fellow-box">
            <div class="userpage_middle_navibar_fellow-box_box">
              <span class="userpage_middle_navibar_fellow-box_box_text">已关注：</span>
              <span class="userpage_middle_navibar_fellow-box_box_text">11</span>
            </div>
            <div class="userpage_middle_navibar_fellow-box_box">
              <span class="userpage_middle_navibar_fellow-box_box_text">关注者：</span>
              <span class="userpage_middle_navibar_fellow-box_box_text">1.2万</span>
            </div>
            <div class="userpage_middle_navibar_fellow-box_box">
              <span class="userpage_middle_navibar_fellow-box_box_text">点击数：</span>
              <span class="userpage_middle_navibar_fellow-box_box_text">12.5万</span>
            </div>
          </div>
        </div>
    </div>
    <div class="userpage_bottom">
        <router-view>
        </router-view>
    </div>
  </div>
</template>
<script>
import top from "@/components/Top";
export default {
  data(){
    return{
      input: '',
      search :'',
      userID : 'AUTOMATIC111',
      userAvtar:'',
      crentylevel : '3' ,//动态绑定等级
    }
  },
  components:{
    top
  },
  mounted(){
    this.userID = this.$cookies.get("userID")
    this.userAvtar = this.$cookies.get("avatarUUID");

  },
  methods:{
    userpageChangeMain(){
      this.$router.push('/space/main')
    },
    userpageChangeFellow(){
      this.$router.push('/space/fellow')
    },
    userpageChangeKuku(){
      this.$router.push('/space/kuku')
    },
    userpageChangeCllection(){
      this.$router.push('/space/collection')
    },
    userpageChangeSetting(){
      this.$router.push('/space/setting')
    }
  }

}

</script>
<style>
.body{
  background-color: rgba(246, 247, 247, 1);
  width: 100%;
  height: 5000px;
  z-index: -5;
}
.userpage_top{
  z-index: 10;
  height: 62px;
  width: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: end;
  padding-top: -10px;
  margin: -10px;
  background-color: white;
  box-shadow: 0px 5px 7px rgb(11 51 41 / 15%);
}
.userpage_middle{
  position: absolute;
  top: 60px;
  left: 250px;
  height: 280px;
  width: 1236px;
  background-color: rgba(190, 210, 210, 1);
}
.userpage_middle_navibar{
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 45px;
  background-color: white;
}
.userpage_middle_avatar{
  position: absolute;
  bottom: 40px;
  height: 60px;
  width: 63px;
  margin: 10px;
  padding: 3px;
  background-color: white;
  border-radius: 50px;
}
.userpage_middle_user-id{
  position: absolute;
  bottom: 74px;
  left: 85px;
}
.userpage_middle_user-level{
  position: absolute;
  bottom: 68px;
  left: 213px;
  height: 23px;
  width: 43px;
  margin-top: 5px;
  padding: 3px;
  background-color: rgb(210, 191, 200);
  border-radius: 5px;
}
.userpage_middle_user-level_container{
  height: 100%;
  width: 100%;
  border-radius: 5px;
  background-color: rgba(190, 210, 210, 1);
}
.userpage_middle_user-level_crentylevel_number{
  font-family: "微软雅黑 Bold", "微软雅黑 Regular", 微软雅黑, sans-serif;
  font-size: 16px;
  position: relative;
  top: -0%;
  left: 15%;
  font-weight: 700;
  color: rgb(149, 116, 108);
}
.userpage_middle_navibar_icon{
  height: 100%;
  width: 43%;
  margin-left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
.userpage_middle_navibar_icon :hover{
  color: rgb(106, 210, 191);
}
.userpage_middle_navibar_icon_box{
  flex : 2;
}
.userpage_middle_navibar_icon_text{
  position: absolute;
  margin-left: 8px;
  width: 64px;
  height: 34px;
  font-family: 微软雅黑, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  border-width: 0px;
}
.userpage_middle_navibar_icon_text:hover{
  cursor: pointer;
}
.userpage_middle_navibar_search{
  position: absolute;
  bottom: 10px;
  right: 44.3%;
  width: 129px;
  height: 25px;
  border-radius: 20px;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(155, 155, 155, 1);
}
.userpage_middle_navibar_fellow-box{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 430px;
  position: absolute;
  right: 0;
  bottom: 0;
}
.userpage_middle_navibar_fellow-box_box{
  flex: calc(10/3);
  display: flex;
  flex-direction: row;
  margin-right: 30px;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.userpage_middle_navibar_fellow-box_box_text{
  font-family: 微软雅黑, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
}
.userpage_bottom{
  border: 1px solid;
  border-color: rgba(179, 193, 193, 1);;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0px -10px 60px 0px rgb(222 229 230 / 73%) inset;
  position: absolute;
  top: 355px;
  left: 250px;
  width: 1236px;
  height: 800px;

}
</style>
